package com.steak.system.common.resultType;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class Result {
    private int code;
    private Object data;

    public static Result create(Object result){
        return Result.create(result,20000);
    }
    public static Result create(Object result , int code){
        Result re = new Result();
        re.setCode(code);
        re.setData(result);
        return re;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
